package com.katze.boot.plugins.security.domain;

import org.springframework.security.core.GrantedAuthority;

import java.io.Serial;
import java.io.Serializable;

public class Authority implements GrantedAuthority, Serializable {

    @Serial
    private static final long serialVersionUID = -1L;

    private Long id;

    private String role;

    @Override
    public String getAuthority() {
        return this.role;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }
}
